home *** CD-ROM | disk | FTP | other *** search
/ Kyoko 8203 / Kyoko 8203.iso / pc / comic.dxr / 00025_ëÂè„âŠ.ls < prev    next >
Encoding:
Text File  |  2003-03-03  |  909 b   |  35 lines

  1. global page, photonumber, initminv, initmaxv
  2.  
  3. on mouseUp me
  4.   mynumber = me.spriteNum
  5.   case mynumber of
  6.     30:
  7.       repeat while ((initmaxv - the locV of sprite 3) / 2) <> 0
  8.         adjust = (initmaxv - the locV of sprite 3) / 2
  9.         set the locV of sprite 3 to the locV of sprite 3 + adjust
  10.         if the locV of sprite 3 < (initmaxv + 2) then
  11.           set the locV of sprite 3 to initmaxv
  12.         end if
  13.         updateStage()
  14.       end repeat
  15.     31:
  16.       repeat while ((initminv - the locV of sprite 3) / 2) <> 0
  17.         adjust = (initminv - the locV of sprite 3) / 2
  18.         set the locV of sprite 3 to the locV of sprite 3 + adjust
  19.         if the locV of sprite 3 > (initminv - 2) then
  20.           set the locV of sprite 3 to initminv
  21.         end if
  22.         updateStage()
  23.       end repeat
  24.       updateStage()
  25.   end case
  26. end
  27.  
  28. on mouseEnter me
  29.   cursor([1, 2])
  30. end
  31.  
  32. on mouseLeave me
  33.   cursor(0)
  34. end
  35.